 <template>
  <div class="aaa">
      <div class="title">67 6</div>
         <div class="spkk" v-for='(it1,in1) in obj.list'>
            <span class="ttt1">{{ it1.course_classify_title }}</span>
            <li class="mn">
        <span>{{ it1.title }}</span>
      </li>
      <ul>
        <li class="bc" v-for="(it2, in2) in it1.teacher">
          <img class="ii1" :src="it2.avatar" alt="" />
          <span>{{ it2.teacher_name }}</span>
        </li>
      </ul>
       <p class="hh" v-if="it1.stock">限{{it1.stock}}人</p>
      <li class="cc" >
        <span>{{it1.sales_num}}人已报名</span>
        <li class='hh'><span class="ss1">￥{{it1.vip_price/100}}</span><span class='ss2'>￥{{it1.price/100}}</span></li>
      </li>
         </div>
  </div>
</template>
<style scoped>
.aaa{
    box-sizing: border-box;
    padding:20px;
    width: 100%;
    height:100vh;
    background: #fafafa;
    border-radius:10px;
}
.spkk{
    background:#fff;
}
* {
  font-size: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ss2{
  color:red;
}
.ss1{
  text-decoration:line-through;
  color: #ccc;
}
.cc{
  margin-top: 10px;
  padding: 15px;
}
.hh{
  margin-top: 10px;
}
.ii1 {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}
.ttt1{
   display: inline-block;
  padding: 3px 10px;
  background: #f15a24;
  color: #fff;
  margin: 15px;
}
.mn{ padding: 0 30px;
  margin-top: 10px;}
.bc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 14px;
}
</style>

<script setup>
import { reactive, ref, toRefs } from "vue";
import { useRoute } from "vue-router";
import { getgkk } from "../http/api.js";
const route = useRoute();
const obj = reactive({
  id: route.query.id,
  list:[]
});
const getlist = async () => {
  const res = await getgkk(obj.id);
  obj.list=res.data.data
  console.log(res);
};
getlist();
</script>
<style lang="scss" scoped></style>
